package com.carleasoft.mps.adu.business.user.bean.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ztm
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_user")
@ApiModel(value="AuthorityUser对象", description="用户表")
public class AuthorityUserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 用户编码
     */
    @TableField("USER_CODE")
    private String userCode;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @TableField("USER_NAME")
    private String userName;

    /**
     * 用户编号
     */
    @TableField("USER_NUMBER")
   private String  userNumber;

    /**
     * 用户账号
     */
    @TableField("USER_ACCOUNT")
    private String userAccount;

    /**
     * 用户密码
     */
    @TableField("USER_PASSWORD")
    private String userPassword;

    /**
     * 用户状态
     */
    @ApiModelProperty(value = "1-正常,2-停用")
    @TableField("USER_STATUS")
    private Integer userStatus;

    /**
     * 用户分类
      */
    @ApiModelProperty(value = "用户分类")
    @TableField("USER_TYPE_CODE")
    private String userTypeCode;

    /**
     * 用户类型
     */
    @ApiModelProperty(value = "1-超级管理员，2-系统管理员，3-组织管理员，4-组织二级管理员，5-普通用户")
    @TableField("USER_CAT")
    private Integer userCat;

    /**
     * 备注
     */
    @TableField(value="REMARK")
    private String remark;

    @TableField(value = "CREATE_PERSON_CODE",fill = FieldFill.INSERT)
    private String createPersonCode;

    @TableField(value = "CREATE_PERSON_NAME",fill = FieldFill.INSERT)
    private String createPersonName;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_PERSON_CODE",fill = FieldFill.UPDATE)
    private String updatePersonCode;

    @TableField(value = "UPDATE_PERSON_NAME",fill = FieldFill.UPDATE)
    private String updatePersonName;

    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}
